module.exports = app => {
	const mongoose = app.mongoose;
	const Schema = mongoose.Schema;

	const ErrorSchema = new Schema({
		app_id : {
			type : String,
			require : true,
		},
		url_path : {
			type : String,
			require : true,
		},
		user_id : {
			type : String,
			require : true,
		},
		create_time : {
			type : Number,
			unique: false,
			require : true,
		},
		is_delete : {
			type : Boolean,
		},
		content : {
			type : String,
			require: true
		},
        mark_user: { type: String }, // 统一某一时间段用户标识
	})
	return mongoose.model('Error',ErrorSchema);
}